<?php
require '../include/library.inc.php';

$json = json_c_decode($_POST['alldata']);
$json = json_c_decode($json);

if($_POST['type'] == 'contact')
{

$message = '<b>Име:</b> '.$json['name'].'<br>';
$message .= '<b>E-mail:</b> '.$json['email'].'<br><br>';

$message .= '<b>Съобщение:</b><br>'.$json['message'].'<br>';


mail( ADMINISTRATOR_EMAIL,
		'i-doadv.com Contact Form',
	    $message,
	          HTML_HEADERS."From: ".$json['name']." <".$json['email'].">");
    
}



?>